package com.tms.springboot.mapper;

import com.tms.springboot.base.pojo.PdTruck;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tms.springboot.search.PdTruckSearch;
import com.tms.springboot.view.PdTruckBasicsView;
import com.tms.springboot.view.PdTruckView;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 车辆信息表 Mapper 接口
 * </p>
 *
 * @author cjj
 * @since 2023-06-14
 */
@Mapper
public interface PdTruckMapper extends BaseMapper<PdTruck> {


    /**
     * 分页查询车辆信息
     * @param pdTruckSearch
     * @return
     * @throws Exception
     */
    List<PdTruckView> pdTruckPage (PdTruckSearch pdTruckSearch) throws Exception;

    /**
     * 车辆详情查询
     * @return
     * @throws Exception
     */
    List<PdTruckBasicsView> vehicledetails(PdTruck pdTruck) throws Exception;

    /**
     *编辑车辆信息
     * @param pdTruck
     * @return
     * @throws Exception
     */
    boolean updateTruck (PdTruck pdTruck) throws Exception;

}
